/*
 * @Descripttion: 
 * @version: 
 * @Author: TT
 * @Date: 2023-04-10 17:56:27
 * @LastEditors: TT
 * @LastEditTime: 2023-05-16 18:21:16
 */

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

import '../components/common_widgets.dart';
import '../utils/screenutil_tools.dart';
import 'hzy_common_color_config.dart';

class SpConfig {
  /// 主题标志
  static String themeType = "themeType";

  /// 语言标志
  static String launchType = "launchType";
}

class PageNormalConfig {
  /// 配置全局 界面装饰器
  static BoxDecoration? get configNormalBoxDec => BoxDecoration(
        color: HzyCommonColor().backgroudgrey,
      );

  /// 配置全局 导航栏字体颜色
  static Color? get configNormalAppBarTextColor => HzyCommonColor().col000000;

  /// 配置全局 返回按钮颜色
  static Color? get configNormalLeadingIconColor => HzyCommonColor().col000000;

  /// 配置全局 背景颜色
  static Color? get configBackGroundColor =>
      HzyCommonColor().whitebackgroundColor;

  /// 配置全局 加载动画
  static Widget? get configLoadingWidget => configLoadWidget();

  /// 配置全局 导航栏背景高度
  static double get configPreferredHeight =>
      SizeMacro.navh - SizeMacro.statusBarHeight;

  /// 配置全局 导航栏背景视图
  static Widget? get configFlexBleSpace => configNavImageBg();

  /// 配置全局 导航栏背景颜色
  static Color? get configNavBackColor => HzyCommonColor().whitebackgroundColor;

  /// 配置全局 是否打开右滑返回
  static bool configIsAddPopScope = (kIsWeb == true ? true : false);
}
